package org.oslims.client.view.impl;

import org.oslims.client.view.UserOverviewView;

import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.user.client.ui.DockLayoutPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.TabPanel;
import com.google.gwt.user.client.ui.VerticalPanel;

public class UserOverviewViewImpl extends BaseViewImpl implements UserOverviewView {

	TabPanel userGroupsTab = new TabPanel();

	public UserOverviewViewImpl() {

		DockLayoutPanel content = new DockLayoutPanel(Unit.PCT);
		content.setStyleName("mainContent");

		VerticalPanel headerPanel = new VerticalPanel();

		Label header = new Label("User Management");
		header.setStyleName("viewHeader");

		headerPanel.add(header);
		content.addNorth(headerPanel, 5);

		content.add(userGroupsTab);

		initWidget(content);
	}

	@Override
	public TabPanel getUserTabPanel() {
		return userGroupsTab;
	}
}
